import React,{useState} from 'react'
import  ComA  from './ComA'
import  ComB  from './ComB'

export default function Channel() {
    const [stateA,setStateA] = useState("A")
    const [stateB,setStateB] = useState("A")
  return (
    <div>
        <ComA stateA={stateA} setStateB={setStateB} setStateA={setStateA}/>
        <ComB stateB={stateB} setStateB={setStateB} setStateA={setStateA}/>
    </div>
  )
}
